src = $(wildcard ./src/*.cpp)
target = $(patsubst ./src/%.cpp, %, $(src))
inc_path = -I./include
args = -Wall -g -lpthread -lpthread $(inc_path) -std=c++11
CC:=g++
ALL:$(target)
%:./src/%.cpp
	$(CC) $< -o $@ $(args)
clean:
	-rm -rf $(obj) $(target)
rebuild:clean $(target)
.PHONY:clean ALL rebuild
